Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json parsing improvements & fixes #58

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

rvagg
Copy link
Contributor

@rvagg rvagg commented Sep 9, 2023

This isn't a fix, it's just a placeholder (demonstration) of some cases that should fail that don't and some that fail with errors messages that are inappropriate. Posting this here while I notice it, perhaps I'll come back and fix soon!

More tests added; fixes applied; more comprehensive testing done via ipld/go-ipld-prime#550

@rvagg rvagg changed the title chore: add failing tests for json map comma handling cases json parsing improvements & fixes Sep 20, 2023
@rvagg rvagg marked this pull request as ready for review September 20, 2023 09:27
@rvagg
Copy link
Contributor Author

rvagg commented Sep 20, 2023

added a fix, but it's non-trivial as we have to manage a bit more state than just "what's next?" in a stack - the "have we done the first one?" needs to be preserved across stack frames

will do some testing with more round-trips using ipld-garbage to see if this breaks anywhere interesting where it shouldn't

@warpfork
Copy link
Member

(lgtm)

rvagg added a commit to ipld/go-ipld-prime that referenced this pull request Sep 26, 2023
To confirm that new refmt JSON decoding changes don't raise any red flags

Ref: polydawn/refmt#58
@rvagg
Copy link
Contributor Author

rvagg commented Sep 26, 2023

ipld/go-ipld-prime#550 looks good, I feel more confident about these changes now

rvagg added a commit to ipld/go-ipld-prime that referenced this pull request Sep 26, 2023
To confirm that new refmt JSON decoding changes don't raise any red flags

Ref: polydawn/refmt#58
@warpfork
Copy link
Member

Per @rvagg 's nudge in another channel that you're happy with this now -- I'm also perfectly happy to merge this, and thank you :)

@warpfork warpfork merged commit 37766d9 into polydawn:master Nov 29, 2023
rvagg added a commit to ipld/go-ipld-prime that referenced this pull request Dec 11, 2023
To confirm that new refmt JSON decoding changes don't raise any red flags

Ref: polydawn/refmt#58
rvagg added a commit to ipld/go-ipld-prime that referenced this pull request Dec 11, 2023
To confirm that new refmt JSON decoding changes don't raise any red flags

Ref: polydawn/refmt#58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants